package com.clps.sync.config;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;

import java.lang.reflect.Method;
public class CustomAsyncExceptionHandler implements AsyncUncaughtExceptionHandler{
    @Override
    public void handleUncaughtException(Throwable throwable, Method method, Object... obj) {

        System.out.println("throwable = " + throwable.getMessage());
        System.out.println("method = " + method.getName());
        for (Object param : obj) {
            System.out.println("param value = " + param);
        }
    }
}
